<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>If Test4</title>
<script src = "/Web/03JavaScript/02IfTest4.js"></script>
</head>
<body>
<h1> if exmaple 4 </h1>
<form method = 'post' action='' name='frm'><br/>	
	<label> 계산한 숫자와 연산자를 입력해주세요. </label><br/>	
	<input type = 'text' id='num1' name = 'num1'/>
	<input type = 'text' id='operator' name = 'operator' size="2">
	<input type = 'text' id='num2' name = 'num2'/>
	<input type = 'button' value='계산결과' id='btn'/>
</form>
<br/>	
<br/>	
<form method = 'post' action='' name='frm2'><br/>	
	<label> 계산한 숫자와 연산자를 입력해주세요. </label><br/>	
	<input type = 'text' id='num1' name = 'num1'/>
	<select name = 'operator'>
		<option value="+">+</option>
		<option value="-">-</option>
		<option value="*">*</option>
		<option value="/">/</option>
		<option value="%">%</option>
	</select>
	<input type = 'text' id='num2' name = 'num2'/>
	<input type = 'button' value='계산결과' id='btn2'/>
</form>

</body>
<script>IfTest4();</script>
</html>